<template>
    <div>
        <!-- seach区域 -->
        <div class="seach">
            <span class="seachStatus">
                {{$t('tsknum')}}
                <el-input v-model.trim="frozenTask.orderNo" :placeholder="$t('plsipt')" size="mini"></el-input>
            </span>
            <span class="seachCsc">
                {{$t('subttim')}}
                <el-date-picker :placeholder="$t('plsset')" v-model.trim="frozenTask.startTime" width="20%" type="date" format="yyyy-MM-dd HH:mm:ss" value-format="yyyy-MM-dd HH:mm:ss" size="mini"></el-date-picker>
            </span>
            <span class="seachStatus">
                {{$t('audsta')}}
                <el-select v-model="frozenTask.auditStatus" :placeholder="$t('plsset')" size="mini">
                    <el-option label="同意冻结" value="生效"></el-option>
                    <el-option label="拒绝冻结" value="失效"></el-option>
                    <el-option label="同意解冻" value="失效"></el-option>
                    <el-option label="拒绝解冻" value="失效"></el-option>
                </el-select>
            </span>
            <el-button type="primary" @click="seachTask" size="mini" v-preventReClick>{{$t('qury')}}</el-button>
        </div>
        <!-- 内容区域 -->
        <el-card class="cardBox">
            <el-table border style="width: 100%" :data="taskList">
                <el-table-column type="index" :label="$t('sernum')">
                </el-table-column>
                <el-table-column prop="orderNo" :label="$t('tsknum')">
                </el-table-column>
                <el-table-column prop="orderNo" :label="$t('subttim')">
                </el-table-column>
                <el-table-column prop="merId" :label="$t('opr')">
                </el-table-column>
                <el-table-column prop="auditUserName" :label="$t('remk')">
                </el-table-column>
                <el-table-column prop="auditStatus" :label="$t('audr')">
                </el-table-column>
                <el-table-column prop="sysGmtModified" :label="$t('submtim')">
                </el-table-column>
                <el-table-column prop="sysGmtModified" :label="$t('audsta')">
                </el-table-column>
                <el-table-column prop="address" :label="$t('opratn')" width="150" fixed="right">
                    <template slot-scope="scope">
                        <el-link type="primary" @click="showaudit(scope.row)">{{$t('exme')}}</el-link>
                        <el-link type="primary" @click="showNot(scope.row)">{{$t('motmer')}}</el-link>
                        <el-link type="primary" @click="orderDetails(scope.row)">{{$t('detls')}}</el-link>
                    </template>
                </el-table-column>
            </el-table>
            <!-- 分页 -->
            <!-- <el-pagination
                @size-change="handleSizeChange"
                @current-change="handleCurrentChange"
                :current-page="frozenTask.pageNum"
                :page-sizes="[10, 15, 20, 30]"
                :page-size="frozenTask.pageSize"
                layout="total, sizes, prev, pager, next, jumper"
                :total="total"
                :pager-count="5">
            </el-pagination> -->
        </el-card>
        <!-- 添加弹框 -->
        <!-- <el-dialog title="添加" :visible.sync="auditDialogVisible" width="30%" :close-on-click-modal='isOk'>
            <el-form :model="taskForm" label-width="80px" :hide-required-asterisk="true">
                <el-form-item label="备注" placeholder="请输入备注">
                    <el-input v-model="taskForm.auditRemark"></el-input>
                </el-form-item>
            </el-form>
            <span slot="footer" class="dialog-footer">
                <el-button type="primary" @click="auditNan">冻  结</el-button>
                <el-button type="primary" @click="auditNan">解  冻</el-button>
                <el-button @click="auditDialogVisible = false">取 消</el-button>
            </span>
        </el-dialog> -->
        <!-- 修改弹框 -->
        <!-- <el-dialog title="修改" :visible.sync="editDialogVisible" width="30%" @close="editDialogVisibleClosed(editRoleForm)" :close-on-click-modal='isOk'>
            <el-form :ref="editRoleForm" :rules="editRoleRul" :model="editRoleForm" label-width="80px" :hide-required-asterisk="true">
                <el-form-item label="角色名" prop="roleName">
                    <el-input v-model="editRoleForm.roleName"></el-input>
                </el-form-item>
                <el-form-item label="角色值" prop="roleCode">
                    <el-input v-model="editRoleForm.roleCode"></el-input>
                </el-form-item>
                <el-form-item label="状态" prop="status">
                    <el-select v-model="editRoleForm.status">
                        <el-option label="生效" value="生效"></el-option>
                        <el-option label="失效" value="失效"></el-option>
                    </el-select>
                </el-form-item>
            </el-form>
            <span slot="footer" class="dialog-footer">
                <el-button type="primary" @click="editRole(addRoleForm)">确 定</el-button>
                <el-button @click="editDialogVisible = false">取 消</el-button>
            </span>
        </el-dialog> -->
    </div>
</template>

<script>
export default {
    data () {
        return {
            frozenTask: {
                orderNo: null,
                auditStatus: null,
                startTime: null,
                endTime: null,
                merId: null,
                applyType: 'FROZEN',
                pageNum: 1,
                pageSize: 10
            },
            taskList: []
        }
    },
    methods: {
        seachTask () {},
        showaudit () {},
        showNot () {},
        orderDetails () {}
    }
}
</script>

<style lang="less" scoped>
@import './freOrder.less';
</style>
